<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
  <title>RoughJS Ellipse</title>
</head>

<body>
  <svg width="800" height="800"></svg>

  <script type="module">
    import rough from '../../../bin/rough.js';
    const svg = document.querySelector('svg');
    const rc = rough.svg(svg, {
      options: {
        strokeLineDash: [15, 5],
        strokeLineDashOffset: 10
      }
    });

    svg.appendChild(rc.ellipse(10 + 40, 10 + 40, 80, 80));
    svg.appendChild(rc.ellipse(110 + 40, 10 + 40, 80, 80, { fill: 'red' }));
    svg.appendChild(rc.ellipse(210 + 40, 10 + 40, 80, 80, { fill: 'pink', fillStyle: 'solid' }));
    svg.appendChild(rc.ellipse(310 + 40, 10 + 40, 80, 80, { fill: 'red', fillStyle: 'cross-hatch' }));
    svg.appendChild(rc.ellipse(410 + 40, 10 + 40, 80, 80, { fill: 'red', fillStyle: 'zigzag', hachureGap: 8 }));
    svg.appendChild(rc.ellipse(510 + 40, 10 + 40, 80, 80, { fill: 'red', fillStyle: 'dots' }));

    svg.appendChild(rc.circle(10 + 40, 110 + 40, 80, { roughness: 2 }));
    svg.appendChild(rc.circle(110 + 40, 110 + 40, 80, { fill: 'red', stroke: 'blue', hachureAngle: 0, strokeWidth: 3, fillLineDash: [15, 5], fillLineDashOffset: 10 }));
    svg.appendChild(rc.circle(210 + 40, 110 + 40, 80, { fill: 'pink', fillWeight: 3, hachureGap: 8, hachureAngle: 45, fillLineDash: [15, 5], fillLineDashOffset: 10 }));

    svg.appendChild(rc.ellipse(300, 350, 480, 280, { fill: 'red', fillStyle: 'dots', hachureGap: 20, hachureAngle: 0, fillWeight: 2 }));

  </script>
</body>

</html>